import { Outlet, useLocation } from "umi";
import { ConfigProvider, App } from "antd";
import ErrorBoundary from "@/components/ErrorBoundary";
// import {ProProvider} from '@ant-design/pro-components'
// import BasicLayout from "@/layouts/BasicLayout";

export default function Layout() {
  return (
    <App>
      <ConfigProvider
        theme={{
          //
          token: {
            // Seed Token，影响范围大
            // colorPrimary: '#00b96b',
            // buttonColor: '#00b96b',
            paddingInlinePageContainerContent: 0,
            // 派生变量，影响范围小
            // colorBgContainer: '#f6ffed',
          },
        }}
      >
        <ErrorBoundary>
          {/*{*/}
          {/*  whiteList.includes(pathname) ? <Outlet /> : <BasicLayout />*/}
          {/*}*/}
          {/*<BasicLayout />*/}
          <Outlet />
        </ErrorBoundary>
      </ConfigProvider>
    </App>
  );
}
